package com.springboot.cloud.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.springboot.cloud.core.model.SystemResource;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Bertram
 * @since 2019-11-05
 */
public interface SystemResourceService extends IService<SystemResource> {

    /**
     * 查询所有资源
     * @return
     */
    List<SystemResource> selectAll();

    /**
     * 查询用户拥有的资源
     * @param username
     * @return
     */
    List<SystemResource> selectResourceByUserName(String username);
}
